package cn.edu.scau.cmi.dengshixin.composite;

import javafx.scene.control.TextArea;

public abstract class Component {

	protected String name;
	
	protected String organization;
	
	public abstract void doSomething(TextArea textArea);
	
	public boolean addChild(Component c) {
		return false;
	}
	
	public boolean removeChild(Component c) {
		return false;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getOrganization() {
		return this.organization;
	}

	public void setOrganization(String organization) {
		this.organization = organization;
	}

	
}
